gtk: use the new scrollable API to get scroll adjustments
authorMichael Natterer <mitch@gimp.org>
Fri, 22 Oct 2010 15:03:21 +0000 (17:03 +0200)
committerMichael Natterer <mitch@gimp.org>
Fri, 22 Oct 2010 15:03:21 +0000 (17:03 +0200)
gtk/gtktoolitemgroup.c

index aa6558a5488eb596c0a8d3aa2d79b605205fb07a..2f69c08af8e0d4a6779ae7a36d7bb771ef981555 100644 (file)
@@ -1083,7 +1083,7 @@ gtk_tool_item_group_set_focus_cb (GtkWidget *window,
       /* Check that the focused widgets is fully visible within
        * the group's parent widget and make it visible otherwise. */
 
-      adjustment = gtk_tool_palette_get_vadjustment (GTK_TOOL_PALETTE (p));
+      adjustment = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (p));
 
       if (adjustment)
         {
@@ -1107,7 +1107,7 @@ gtk_tool_item_group_set_focus_cb (GtkWidget *window,
             }
         }
 
-      adjustment = gtk_tool_palette_get_hadjustment (GTK_TOOL_PALETTE (p));
+      adjustment = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (p));
 
       if (adjustment)
         {